| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import React from 'react'; |
||
| 4 | |||
| 5 | export class Component extends React.PureComponent { |
||
| 6 | static propTypes = { |
||
| 7 | className: PropTypes.string, |
||
| 8 | children: PropTypes.oneOfType([ |
||
| 9 | PropTypes.arrayOf(PropTypes.node), |
||
| 10 | PropTypes.node, |
||
| 11 | ]), |
||
| 12 | }; |
||
| 13 | |||
| 14 | static defaultProps = { |
||
| 15 | children: null, |
||
| 16 | }; |
||
| 17 | |||
| 18 | render() { |
||
| 19 | const { className, children } = this.props; |
||
| 20 | return <div className={className}>{children}</div>; |
||
| 21 | } |
||
| 27 |